home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
qlib205.zip
/
QLIB.ZIP
/
TEST
/
ARGS.ASM
< prev
next >
Wrap
Assembly Source File
|
1997-03-24
|
540b
|
32 lines
include qlib.inc
include string.inc
include stdio.inc
include conio.inc
.code
main proc,argc:dword,argv:dword
mov ecx,argc
callp printf,"# args=%d\n",ecx
test ecx,ecx
jz done
mov ebx,1
@@:
mov edx,ebx
dec edx
shl edx,2 ;*4
mov eax,argv ;FIX : v2.00 Beta #5 : this was add (lucky eax was always 0 after the printf calls)
mov edx,[eax+edx]
callp printf," Arg #%d=%s \n",ebx,edx
inc ebx
dec ecx
jnz @b
done:
callp print,"done (slam a key)\n\n"
call getch
ret
main endp
end